import request from '../utils/request'

const CatalogList = 'wx/catalog/index' // 分类目录全部分类数据接口
export function catalogList () {
  return request({
    url: CatalogList,
    method: 'get'
  })
}

const CatalogCurrent = 'wx/catalog/current' // 分类目录当前分类数据接口
export function catalogCurrent (query) {
  return request({
    url: CatalogCurrent,
    method: 'get',
    params: query
  })
}
